package net.entity;

import java.io.Serializable;

import net.number.util.RandomNumberGenerator;

public class Data implements Serializable {
	
	private static final long serialVersionUID = 1L;

	public Data() {
		data1 = RandomNumberGenerator.generate(1, 10);
		data2 = RandomNumberGenerator.generate(1, 10);
	}
	
	private int data1;
	private int data2;
	
	public int getData1() {
		return data1;
	}

	public int getData2() {
		return data2;
	}
	
	public String getAnswer() {
		int answer = data1 + data2;
		return String.valueOf(answer);
	}

}
